<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<?php
	$cartas = array(
				"2" => "2",
				"3" => "3",
				"4" => "4",
				"5" => "5",
				"6" => "6",
				"7" => "7",
				"8" => "8",
				"9" => "9",
				"10" => "10",
				"J" => "10",
				"Q" => "10",
				"K" => "10",
				"A" => "11",
			);
	$cartas = array_keys($cartas);
	shuffle($cartas);
	for ($i=0; $i < 2 ; $i++) { 
		echo $cartas[$i] . " ";
	}
	 ?>
	 <form action="" method="post">
	 	<input type="submit" name="action" value="Pedir Carta">
	 	<input type="submit" name="action" value="Plantarse">
	 </form>
</body>
</html>